package org.zhadoop.stream.cql.semanticanalyzer.analyzecontext.expressiondesc;

/**
 * 流名称以及别名描述信息
 * @author zwd
 *
 */
public class StreamAliasDesc implements ExpressionDescribe{
	private String streamName;
	
	private String streamAlias;
	
	@Override
	public String toString() {
		if (streamAlias == null)
        {
            return " " + streamName;
        }
        return " " + streamName + " as " + streamAlias + " ";
	}

	public String getStreamName() {
		return streamName;
	}

	public void setStreamName(String streamName) {
		this.streamName = streamName;
	}

	public String getStreamAlias() {
		return streamAlias;
	}

	public void setStreamAlias(String streamAlias) {
		this.streamAlias = streamAlias;
	}
}
